Blitz Basic Programs

last modified : 22nd November 1997

Introduction

Welcome to the Blitz Basic Program Collection. This is a collection of source code examples for Blitz programmers. It is also home to the new Blitz Basic Mailing List FAQ.

There has been a lack of updates recently due to a low number of submissions. Please, if you have any source code that could be useful to others, send it in. To submit code, put your Blitz Basic source code together in an archive with documentation and I will put it here. I may modify the archive to reduce it's size if necessary as I want the archives to be as small as possible.

If you have any trouble with out-of-memory errors when compiling code from here, try deleting the .xtra file that goes with the source. I think it is something to do with the version of Blitz you are using. Some programs also require the command libraries that come with the Blitz Support Suite from Red When Excited.

All the source is now packed using LZX. You can get the Lzx121.lha archive from Aminet if you need it.

If you have any comments, suggestions or submissions, let me know at awingrove@thenet.co.uk.


Blitz List FAQ

I have recently been working with people from the Blitz Basic Mailing List to compile a new Frequently Asked Questions document for the list. The first version of this FAQ is now complete and available in plain text, AmigaGuide and HTML formats. Download the FAQ using the links below or browse the HTML version online.
Plain Text version
FAQ_Text.lzx ( 6,511 bytes )
AmigaGuide version
FAQ_Guide.lzx ( 8,287 bytes )
HTML version
FAQ_Html.lzx ( 24,285 bytes )


Source Code Index

8-Way Scroller UPDATED
Updated Blitz source code example of 8 way scrolling, by Liz Tucker. Now includes a 2 way scrolling example.
Catalog / Locale Example
How to use the Locale feature, from Paul Burkey.
Modem Dial Routine
Shows how to dial a modem using serial commands, from Paul Lathwell.
GT ListView and Cycle Gadget Example
Here is a short example showing how to use GT ListView and Cycle gadgets from Daithi O Cuinn.
ClipFTXT
Example of using the OS clipboard functions from Anthony Borg.
SetTitle
Shows a hack to stop memory loss when setting a window's title.
Amiga Cool Buttons
PC Internet Explorer-style buttons in Blitz.
Windows For Beginners
A tutorial on using Windows from Simon Archer.
Code from Andy Macklin
Example source code for various things from Andy Macklin.
Anthony Brice's Code
Programs and useful source from Anthony Brice.
Spline Examples
Examples of drawing splines from Raith Munro.
Berhan Karagöz's Demos
Three demos from Berhan Karagöz.
Erase v1.0
Blitz example with source, by Paul Lathwell.
Richard Hodger's Code
The source code for several small programs, by Richard Hodger.
Bastion v1.0
Password protect workbench and encrypt important files.
Blitz Arexx Examples
Examples of adding ARexx support to your Blitz program.
SMech GUI
GUI for SMech, a Battletech database program.
BSpline Example
Demonstration program for drawing bsplines.


Source Code


8-Way Scroller

These archive contain blitz source code that shows you how to create 2-way and 8-way scrolling using the method of opening a double size bitmap to scroll a map of 16 x 16 pixel blocks. The archives also contain data files to go with the example. These are written by Liz Tucker.

8WayScroll.lzx ( 15,869 bytes )
2WayScroll.lzx ( 51,258 bytes )

Catalog / Locale Example

From Paul Burkey, this source code demonstrates using the using the Locale feature of OS2.1+ to make your programs easy to translate in to other languages.

Locale.lzx ( 1,751 bytes )

Modem Dial Routine

This example from Paul Lathwell shows how to dial a phone number via a modem. This shows how to use the Blitz commands for using accessing the serial port. AmigaLibs must be resident to use this.

DialNumber.lzx ( 853 bytes )

GT ListView and Cycle Gadget Example

This is a short example from Daithi O Cuinn that shows how to use the GadTools ListView and Cycle gadgets. I had a small problem with Blitz not cleaning up correctly on exit, but the code works fine so I am not sure if it was just me.

GTGads.lzx ( 1,381 bytes )

ClipFTXT

This is an example of using the Amiga OS functions for th clipboard from Blitz. It writes ASCII text to the clipboard unit as FTXT. The example writes FTXT to the clipboard first, then reads it back. This code was submitted by Anthony Borg.

ClipFTXT.lzx ( 19,699 bytes )

SetTitle

This is a small example of how to change the title for a window without memory loss. Both the Blitz command and the OS command all lose memory when you set the title, so a clock-type program can quickly use up a significant amount of memory. This example shows a bit of a hack that fixes the problem.

SetTitle.lzx ( 13,427 bytes )

Amiga Cool Buttons

Here is something I've been working on a bit as a bit of an exercise. It allows you to use Cool Buttons in your programs. Cool Buttons are the Internet Explorer-style buttons from the PC. It's all a bit hard-coded at the moment, but I intend to finish the package as a fully useable system. The buttons included are designed for 2x1screens.Have some fun with it!

CoolButtons.lzx ( 6,465 bytes )

Windows For Beginners

The is a collection of 20 source code examples of using windows in Blitz. Together they form a tutorial on the basics of window programing. All the source is well commented and will show you how to use all the important features of Workbench's windows. This tutorial was written by Simon Archer.

Wfb.lzx ( 10,247 bytes )

Code From Andy Macklin

This is a collection of examlpe source code mainly for windows and gadtools. These include an example of filling the background of a window with a pattern and using the ReqTools screen mode requestor. The code was submitted by Andy Macklin, but not all of it was written by him. If you recognise your code and want it removed from here, let me know.

AMacklin.lzx ( 6,708 bytes )

Anthony Brice's Code

Here is a collection of source code from Anthony Brice. Amigator lets you add and delete users from your amigate file ( whatever that is! ). Blitzio lets you monitor the input and output of your Amiga. Functions is a collection of useful bits of code. Phonebase is a simple name and address database. Zeus-Toggle switches your Zeus BBS on-line and off-line with a GUI.

Amigator.lzx ( 3,545 bytes )
BlitzIO.lzx ( 4,908 bytes )
Functions.lzx ( 5,137 bytes )
PhoneBase.lzx ( 8,909 bytes )
ZeusToggle.lzx ( 3,979 bytes )

Spline Examples

This is two examples of drawing splines from Raith Munro and very nice they are too. One does splines by cheating a bit. The other does splines with control points.

Spline.lzx ( 4,775 bytes )

Berhan Karagöz's Demos

These archives are three demos from Berhan Karagöz. Crazey demonstrates scrolling a picture smoothly. Demo shows palette changes and shaking a picture. Prn-Pap is another demo of scrolling a large picture smoothly. I believe all the code requires AGA to run as it is.

Crazey.lzx ( 4,775 bytes )
Demo.lzx ( 4,775 bytes )
Prn-Pap.lzx ( 4,775 bytes )

Erase v1.0

Erase is a simple program to open a requester for deleting files, rather than having to resort to a directory utility, CLI or Workbench. It shows how to use the NeilsReqToolsLib to use reqtools requesters in your programs. It was written by Paul Lathwell and is the first submission to the Blitz source code collection.

Erase.lzx ( 2,690 bytes )

Richard Hodger's Code

This archive is a collection of source code from Richard Hodger. He naughtily did not include any documentation, but most of them should not be too difficult to work out. Email him if you have any problems. Highlights include a nice progress bar example and several examples of finding information about the Amiga your program is running on.

RHodger.lzx ( 4,974 bytes )

Bastion v1.0 beta

Bastion is a password protection program for the Amiga written by myself in Blitz Basic 2. It will only allow access to Workbench by entering a valid user name and password. In order to combat the problem of the 'boot with no startup-sequence', it can encrypt any files you select and they are only decrypted on a successful login. Some AmigaDOS commands are recommended to be encrypted ( such as delete, ed, copy, etc. ), but you can easily select your private files too. Up to 10 users can be added with their own passwords, but this version does not allow for different encryption setups for each user. This archive contains the programs, source and documentation for Bastion. Note that this is beta. It is untested so far on any machine except mine.

Bastion.lzx ( 56,069 bytes )

Blitz ARexx Examples

I have written two small Blitz programs as examples of how to use ARexx in Blitz programs. One uses the standard Blitz ARexx commands, the other the RIARexxLib. I hope these help people looking to add ARexx ports to their programs. The example provides a basic ARexx port for accepting commands and shows how commands can be sent to other programs.

ArexxTest.lzx ( 2,725 bytes )

SMech GUI

SMech is a program for the Amiga that contains a database of most Battletech mechs. It can output these in several ways and contains all the info on armour, weapons and equipment. However, it is a CLI only program, so I wrote a GUI for it to specify the search criteria and call your favourite text viewer to view the results. The archive contains the program and source for SMech GUI. I have also placed a link to SMech on Aminet. SMech GUI is a full version 1.0 and is distributed as freeware.

SMechGUI.lzx ( 2,866 bytes )
SMech11.lha from Aminet ( 19,825 bytes )

BSpline Example

This is a program that was originally written for Windows for an assignment at college. I have converted it to Blitz Basic 2 and optimised it to run a bit more efficiently. It does not do anything except draw bsplines. It's just an example. Source code is included.

BSpline.lzx ( 2,434 bytes )


Blitz Links

Foundation Homepage Home of Paul Burkey's game written in Blitz.
Paul Lathwell's Homepage Home of Paul Lathwell, who has submitted a couple of the Blitz code examples.
Club Blitz A Blitz Basic support page.


InternetFCI Homepage Webring

This InternetFCI Homepage Webring site is owned by awingrove@thenet.co.uk.
[ Next| Next 5| Skip Next| Previous| Previous 5| Skip Previous| Random| List Sites]


You are vistor number [Page Counter]

©1997 Alexander Wingrove.
Contact me at awingrove@thenet.co.uk
Visit my Home Page